import { Config } from '@tarojs/taro'

export default {
  window: {
    navigationBarTitleText: '阅心理',
    navigationBarTextStyle: 'black',
    navigationStyle: 'custom',
    backgroundColor: '#f5f5f5',
    backgroundTextStyle: 'dark',
    // onReachBottomDistance: 100, //触底距离
  },
  plugins: {
    tencentvideo: {
      version: '1.3.18',
      provider: 'wxa75efa648b60994b',
    },
  },
  debug: true,
  networkTimeout: {
    request: 10000, //请求时间
  },
  // 可以导航的页面
  pages: [
    'pages/Home/index', // 首页

    'pages/College/index', // 学院
    'pages/Live/index', // 直播
    'pages/My/index', // 个人中心
    'pages/Consulting/index', //咨询
  ],
  // 底部导航条
  tabBar: {
    color: '#999',
    selectedColor: '#FFB71B',
    backgroundColor: '#fff',
    borderStyle: 'black',
    list: [
      {
        pagePath: 'pages/Home/index',
        text: '首页',
        iconPath: './assets/icons/home.png',
        selectedIconPath: './assets/icons/home_selected.png',
      },
      {
        pagePath: 'pages/College/index',
        text: '学院',
        iconPath: './assets/icons/college.png',
        selectedIconPath: './assets/icons/college_selected.png',
      },
      {
        pagePath: 'pages/Live/index',
        text: '直播',
        iconPath: './assets/icons/live.png',
        selectedIconPath: './assets/icons/live_selected.png',
      },
      {
        pagePath: 'pages/Consulting/index',
        text: '咨询',
        iconPath: './assets/icons/info.png',
        selectedIconPath: './assets/icons/info_selected.png',
      },
      {
        pagePath: 'pages/My/index',
        text: '我的',
        iconPath: './assets/icons/my.png',
        selectedIconPath: './assets/icons/my_selected.png',
      },
    ],
  },
  subPackages: [
    {
      root: 'pages/Consulting/ConsultingDetails',
      name: 'ConsultingDetails',
      pages: ['index'],
    },
    {
      root: 'pages/Consulting/AppointmentSuccessful',
      name: 'AppointmentSuccessful',
      pages: ['index'],
    },
    {
      root: 'pages/Consulting/Reservation',
      name: 'Reservation',
      pages: ['index'],
    },

    {
      root: 'pages/ExcellentCourse',
      name: 'ExcellentCourse',
      pages: ['index'],
    },
    {
      root: 'pages/Live/LiveDetails',
      name: 'LiveDetails',
      pages: ['index'],
    },
    {
      root: 'pages/College/CourseDetails',
      name: 'CourseDetails',
      pages: ['index'],
    },
    {
      root: 'pages/College/OffLineCourseDetails',
      name: 'OffLineCourseDetails',
      pages: ['index'],
    },
    {
      root: 'pages/College/VideoPlay',
      name: 'VideoPlay',
      pages: ['index'],
    },
    {
      root: 'pages/Home/HomeCardDetails',
      name: 'HomeCardDetails',
      pages: ['index'],
    },
    {
      root: 'pages/Home/RecommendMore',
      name: 'RecommendMore',
      pages: ['index'],
    },
    {
      root: 'pages/Home/HomeEvaluationResults',
      name: 'HomeEvaluationResults',
      pages: ['index'],
    },
    {
      root: 'pages/Home/TestQuestions',
      name: 'TestQuestions',
      pages: ['index'],
    },
    {
      root: 'pages/QueryResult',
      name: 'QueryResult',
      pages: ['index'],
    },
    {
      root: 'pages/PaymentResults',
      name: 'PaymentResults',
      pages: ['index'],
    },
    {
      root: 'pages/Pay',
      name: 'Pay',
      pages: ['index'],
    },

    {
      root: 'pages/My/MyEvaluation',
      name: 'MyEvaluation',
      pages: ['index'],
    },
    {
      root: 'pages/My/MyCourses',
      name: 'MyCourses',
      pages: ['index', 'Evaluate/index'],
    },
    {
      root: 'pages/My/MyCollect',
      name: 'MyCollect',
      pages: ['index'],
    },
    {
      root: 'pages/My/MyReservation',
      name: 'MyReservation',
      pages: ['index'],
    },
    {
      root: 'pages/My/MyAttention',
      name: 'MyAttention',
      pages: ['index'],
    },
    {
      root: 'pages/My/AboutUs',
      name: 'AboutUs',
      pages: ['index'],
    },
    {
      root: 'pages/My/MyCustomer',
      name: 'MyCustomer',
      pages: ['index'],
    },
    {
      root: 'pages/My/Feedback',
      name: 'Feedback',
      pages: ['index'],
    },
    {
      root: 'pages/My/SetUp',
      name: 'SetUp',
      pages: ['index'],
    },
    {
      root: 'pages/My/MyWallet',
      name: 'MyWallet',
      pages: ['index', 'WalletRecords/index'],
    },
    {
      root: 'pages/My/DistributionRecords',
      name: 'DistributionRecords',
      pages: ['index'],
    },
    {
      root: 'pages/My/MyTeam',
      name: 'MyTeam',
      pages: ['index'],
    },
    {
      root: 'pages/My/MyOrder',
      name: 'MyOrder',
      pages: ['index', 'OrderDetail/index'],
    },
  ],
} as Config
